home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 4
/
FM Towns Free Software Collection 4 - Disc 2.iso
/
heat_tst
/
mactest.cfg
< prev
next >
Wrap
Text File
|
1991-10-19
|
1KB
|
84 lines
/* :
: マクロベンチマークテスト
:
: 1991.10. 6
:
*/
/*----------------------------------------------------------------
/* TEST #1
/*
TEST_1 {
time("START")
echo("TEST #1 : 10,000回ループ")
I = 0;
while ( I < 10000 )
{ inc(I)
}
time("END")
expr("TIME","\(END)-\(START)")
echo("\n TIME \(TIME) sec\n")
mos_wait("x","y",84)
}
/*----------------------------------------------------------------
/* TEST #2
/*
TEST_2 {
time("START")
echo("TEST #2 : 四則演算")
I = 0;
A = 0;
B = 0;
C = 1;
D = 100000;
while ( I < 1000 )
{ inc(I)
add("A",1)
sub("B",1)
mul("C",2)
div("D",2)
}
time("END")
expr("TIME","\(END)-\(START)")
echo("\n TIME \(TIME) sec\n")
mos_wait("x","y",84)
}
/*----------------------------------------------------------------
/* TEST #3
/*
TEST_3 {
time("START")
echo("TEST #3 : ユーザー定義関数呼び出し")
I = 0;
while ( I < 1000 )
{ inc(I)
User_func_1()
User_func_2()
}
time("END")
expr("TIME","\(END)-\(START)")
echo("\n TIME \(TIME) sec\n")
mos_wait("x","y",84)
}
User_func_1 {
}
User_func_2 {
}
main {
wind_close()
wind_init();
wind_open2("マクロベンチマークテスト")
TOTAL_TIME = 0;
TEST_1(); add("TOTAL_TIME",TIME)
TEST_2(); add("TOTAL_TIME",TIME)
TEST_3(); add("TOTAL_TIME",TIME)
echo("\nTOTAL \(TOTAL_TIME) sec\n")
mos_wait("x","y",84)
wind_close();
}